
package com.joysuch.wwyt.monitoringcenter.bean;

import lombok.Data;

import java.util.List;

//监测点详情( id查询)
@Data
public class MonitoringPointDetailBean {
    private BaseInfo monitorList;
    private CurrentValue monitorCurrentValue;
    private List<HistoryValue> monitorValueList;
    private List<WarnInfo> warnList;

    public void setCurrentValue(String value, String unit) {
        this.monitorCurrentValue = new CurrentValue(value, unit);
    }

    @Data
    public static class BaseInfo {
        private String name;
        private String number;
        private String type;
        private String unit;
        private String firstValue;
        private String secondValue;
        private String lowValue1;
        private String lowValue2;
        private String highValue1;
        private String highValue2;

    }

    @Data
    public static class CurrentValue {

        public CurrentValue() {

        }

        public CurrentValue(String value, String unit) {
            super();
            this.value = value;
            this.unit = unit;

        }

        // 值
        private String value;
        // 单位
        private String unit;
    }

    @Data
    public static class HistoryValue {
        // 值
        private Double value;
        // 单位
        private String unit;
        // 时间 格式为 11:00
        private String time;
    }

    @Data
    public static class WarnInfo {
        // "2019/11/25 17:14:25","
        private String time;

        // "value":"17.3%",
        private String value;

        // "level":"一级"，
        private String level;

        // "solveStatus":"已处理",
        private String solveStatus;

        // "solveTime":"2019/11/25 17:14:25"
        private String solveTime;
    }

}
